/*
 * @Author: 汪军 624473119@qq.com
 * @Date: 2023-10-22 18:29:42
 * @LastEditors: 汪军 624473119@qq.com
 * @LastEditTime: 2023-10-22 18:29:48
 * @FilePath: \app-formwork\src\utils\copy.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// 复制内容到剪贴板
export function copyContent(msg) {
  const clipItem = document.body;
  const input = document.createElement("input");
  input.value = msg;
  clipItem.appendChild(input);
  input.select();
  document.execCommand("copy");
  clipItem.removeChild(input);
}